﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ScriptEditor.Commands
{
    class Command_Trophy : Command
    {
        public int trophyId
        {
            get
            {
                return int.TryParse(Value1, out int result) ? result : 0;
            }
            set
            {
                Value1 = value.ToString();
            }
        }
        public int countMax
        {
            get
            {
                return int.TryParse(Value2, out int result) ? result : 0;
            }
            set
            {
                Value2 = value.ToString();
            }
        }
        public string conditionMember
        {
            get
            {
                return Value3;
            }
            set
            {
                Value3 = value;
            }
        }
        public string conditionFull
        {
            get
            {
                return Value3;
            }
            set
            {
                Value3 = value;
            }
        }
        public Command_Trophy()
        {
            CommandType = COMMANDTYPE.Trophy;
            trophyId = 0;
            countMax = 0;
            conditionMember = "";
            conditionFull = "";
            Wait = false;
        }
        public Command_Trophy(int TrophyId = 0, int CountMax = 0, string ConditionMember = "", string ConditionFull = "")
        {
            CommandType = COMMANDTYPE.Trophy;
            trophyId = TrophyId;
            countMax = CountMax;
            conditionMember = ConditionMember;
            conditionFull = ConditionFull;
            Wait = false;
        }
    }
}
